package com.education.dao;

import com.education.pojo.RoleFunction;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleFunctionMapper {
    int deleteByPrimaryKey(Integer rfId);

    int insert(RoleFunction record);

    int insertSelective(RoleFunction record);

    RoleFunction selectByPrimaryKey(Integer rfId);

    int updateByPrimaryKeySelective(RoleFunction record);

    int updateByPrimaryKey(RoleFunction record);

    List<RoleFunction> selectByRoleId(@Param("roleId") Integer roleId);

    int insertByFid(@Param("modelIdList") Integer modelIdList);
    //role_id,f_id,state
    Integer insertByFids(@Param("fid") Integer fid,
                         @Param("roleId") Integer roleId,
                         @Param("state") Integer state);
}